package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.RoleBean;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface IUserMapper extends BaseMapper<UserBean> {
    /**
     * 批量添加用户角色
     * @param userId 用户编号
     * @param roleIdArr 角色id数组
     */
    public void addRoles(@Param("userId") Integer userId,@Param("roleIdArr") Integer[] roleIdArr);

    /**
     * 删除用户角色
     * @param id 用户id
     */
    public void delRoles(Integer id);
}
